<!DOCTYPE html>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,initial-scale=1.0,user-scalable=no" />
		<meta name="apple-mobile-web-app-capable" content="yes" />
		<!-- intoHead Start -->
		{include file="common/intohead" /}
		<!-- /intoHead End -->
	</head>
	<body class="mainbody">
		<!--导航栏-->
		{include file="common/position" /}
		<!--/导航栏-->

		<div class="line10"></div>
		<style>
			.ltable tr:hover {
			    background: #fff;
			}
		</style>
		{notempty name="list"}
			<!--工具栏-->
			<div id="floatHead" class="toolbar-wrap" style="height: 52px;">
				<div class="toolbar">
					<div class="box-wrap">
						<a class="menu-btn"></a>
						<div class="l-list">
							<ul class="icon-list">
								<li><a class="add" href="{:url('admin/system/addConfig')}"><i></i><span>新增配置</span></a></li>
								<li><a class="all" href="#" ><i></i><span>全选</span></a></li>
								<!-- <li><a id="btnDelete" class="del" href="#"><i></i><span>批量删除</span></a></li> -->
								<li class="myli"><a class="isAllowed" style="background:rgb(198, 198, 198);cursor: not-allowed;" data-type="all" data-ids="" id="btnDelete" class="del" data-url="{:url('admin/system/delConfig')}"><i></i>批量删除</a></li>
							</ul>
						</div>
						<div class="r-list">
							<form action="" method="post">
								<input name="txtKeywords" type="text" id="txtKeywords" class="keyword">
								<a id="lbtnSearch" class="btn-search" href="#">查询</a>
							</form>
						</div>
					</div>
				</div>
			</div>
			<!--/工具栏-->

			<div class="table-container">
				<table width="100%" border="0" cellspacing="0" cellpadding="0" class="ltable">
					<tbody>
						<tr class="odd_bg">
							<th>选择</th>
							<th>配置名称</th>
							<th>配置标题</th>
							<th>配置分组</th>
							<th>配置类型</th>
							<th>排序</th>
							<th>状态</th>
							<th>操作</th>
						</tr>
						{volist name="list" id="vo"}
							<tr>
								<td><span class="td check-option r1 checkall" style="width: 4%;"><input type="checkbox" name="id[]"  value="{$vo.id}"></span></td>
								<td>{$vo.name}</td>
			                	<td>{$vo.title}</td>
			                	<td>{$vo.group|get_config_group}</td>
			                	<td>{$vo.type|get_config_type}</td>
			                	<td>{$vo.sort}</td>
			                	<td>{$vo['status']?'显示':'不显示'}</td>
			                	<td>
			                		[ <a href="{:url('admin/system/editConfig',array('id'=>$vo['id']))}" class="btn-xs btn-link ">编辑</a> ]
			                		<!-- [ <a href="{:url('admin/system/delConfig',array('id'=>$vo['id']))}" class="btn-xs btn-link button">删除</a> ] -->
			                		[ <a href="javascript:;"  data-url="{:url('admin/system/delConfig')}" data-ids="{$vo.id}" class="btn-xs btn-link isConfirm check_a" style="background: #fff;border: none;cursor: pointer;">删除</a> ]
			                	</td>
							</tr>
						{/volist}
					</tbody>
				</table>
				<div class="line20"></div>
				<!--数据分页-->
				<div class="page-bootstrap">{$list->render()}</div>
			</div>
		{else /}
			<!--空数据提示-->
			{include file="common/empty" /}
			<!--/空数据提示-->
		{/notempty}
		<!--/列表-->
	</body>
</html>